package net.mujiwulian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: silence
 * @Description:
 * @Date:Create：in 2019/12/28 15:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods")
public class Goods implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 品牌
     */
    @TableField(value = "brand")
    private String brand;

    /**
     * 货号
     */
    @TableField(value = "no")
    private String no;

    /**
     * 材质
     */
    @TableField(value = "texture")
    private String texture;

    /**
     * 产地
     */
    @TableField(value = "place")
    private String place;

    /**
     * 链接
     */
    @TableField(value = "link")
    private String link;

    /**
     * 是否是定制(0否 1是)
     */
    @TableField(value = "is_custom")
    private Integer isCustom;

    /**
     * 产品图
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 详情图
     */
    @TableField(value = "img_details_url")
    private String imgDetailsUrl;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private MultipartFile img;
    @TableField(exist = false)
    private MultipartFile imgDetails;
}
